const shopping = [
  { fruits: "apple", quantity:  3},
  { fruits: "watermelon", quantity: 1},
];

const shoppingString = JSON.stringify(shopping); 
console.log(shoppingString)
//  [{"fruits":"apple","quantity":3},{"fruits":"watermelon","quantity":1}]


// const shoppingString = 
// 	'[{"fruits":"apple","quantity":3},{"fruits":"watermelon","quantity":1}]'

// const shopping = JSON.parse(shoppingString);

// console.log(shopping); //Array 